﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopTrade")]
    public class Trade : BaseObject
    {
        //begin
        public Trade()
        {}
        public Trade(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private DateTime _EndTime;
        public DateTime EndTime
        {
            get
            {
                return _EndTime;
            }
            set
            {
                SetPropertyValue("EndTime", ref _EndTime, value);
            }
        }
        private string _BuyerMessage;
        public string BuyerMessage
        {
            get
            {
                return _BuyerMessage;
            }
            set
            {
                SetPropertyValue("BuyerMessage", ref _BuyerMessage, value);
            }
        }
        private string _ShippingType;
        public string ShippingType
        {
            get
            {
                return _ShippingType;
            }
            set
            {
                SetPropertyValue("ShippingType", ref _ShippingType, value);
            }
        }
        private string _BuyerCodFee;
        public string BuyerCodFee
        {
            get
            {
                return _BuyerCodFee;
            }
            set
            {
                SetPropertyValue("BuyerCodFee", ref _BuyerCodFee, value);
            }
        }
        private string _SellerCodFee;
        public string SellerCodFee
        {
            get
            {
                return _SellerCodFee;
            }
            set
            {
                SetPropertyValue("SellerCodFee", ref _SellerCodFee, value);
            }
        }
        private string _ExpressAgencyFee;
        public string ExpressAgencyFee
        {
            get
            {
                return _ExpressAgencyFee;
            }
            set
            {
                SetPropertyValue("ExpressAgencyFee", ref _ExpressAgencyFee, value);
            }
        }
        private string _AdjustFee;
        public string AdjustFee
        {
            get
            {
                return _AdjustFee;
            }
            set
            {
                SetPropertyValue("AdjustFee", ref _AdjustFee, value);
            }
        }
        private string _Status;
        public string Status
        {
            get
            {
                return _Status;
            }
            set
            {
                SetPropertyValue("Status", ref _Status, value);
            }
        }
        private string _BuyerMemo;
        public string BuyerMemo
        {
            get
            {
                return _BuyerMemo;
            }
            set
            {
                SetPropertyValue("BuyerMemo", ref _BuyerMemo, value);
            }
        }
        private string _SellerMemo;
        public string SellerMemo
        {
            get
            {
                return _SellerMemo;
            }
            set
            {
                SetPropertyValue("SellerMemo", ref _SellerMemo, value);
            }
        }
        private DateTime _PayTime;
        public DateTime PayTime
        {
            get
            {
                return _PayTime;
            }
            set
            {
                SetPropertyValue("PayTime", ref _PayTime, value);
            }
        }
        private DateTime _Modified;
        public DateTime Modified
        {
            get
            {
                return _Modified;
            }
            set
            {
                SetPropertyValue("Modified", ref _Modified, value);
            }
        }
        private long _BuyerObtainPointFee;
        public long BuyerObtainPointFee
        {
            get
            {
                return _BuyerObtainPointFee;
            }
            set
            {
                SetPropertyValue("BuyerObtainPointFee", ref _BuyerObtainPointFee, value);
            }
        }
        private string _CodFee;
        public string CodFee
        {
            get
            {
                return _CodFee;
            }
            set
            {
                SetPropertyValue("CodFee", ref _CodFee, value);
            }
        }
        private long _BuyerFlag;
        public long BuyerFlag
        {
            get
            {
                return _BuyerFlag;
            }
            set
            {
                SetPropertyValue("BuyerFlag", ref _BuyerFlag, value);
            }
        }
        private long _SellerFlag;
        public long SellerFlag
        {
            get
            {
                return _SellerFlag;
            }
            set
            {
                SetPropertyValue("SellerFlag", ref _SellerFlag, value);
            }
        }
        private string _TradeFrom;
        public string TradeFrom
        {
            get
            {
                return _TradeFrom;
            }
            set
            {
                SetPropertyValue("TradeFrom", ref _TradeFrom, value);
            }
        }
        private string _AlipayWarnMsg;
        public string AlipayWarnMsg
        {
            get
            {
                return _AlipayWarnMsg;
            }
            set
            {
                SetPropertyValue("AlipayWarnMsg", ref _AlipayWarnMsg, value);
            }
        }
        private string _AlipayId;
        public string AlipayId
        {
            get
            {
                return _AlipayId;
            }
            set
            {
                SetPropertyValue("AlipayId", ref _AlipayId, value);
            }
        }
        private string _CodStatus;
        public string CodStatus
        {
            get
            {
                return _CodStatus;
            }
            set
            {
                SetPropertyValue("CodStatus", ref _CodStatus, value);
            }
        }
        private string _BuyerArea;
        public string BuyerArea
        {
            get
            {
                return _BuyerArea;
            }
            set
            {
                SetPropertyValue("BuyerArea", ref _BuyerArea, value);
            }
        }
        private string _SellerNick;
        public string SellerNick
        {
            get
            {
                return _SellerNick;
            }
            set
            {
                SetPropertyValue("SellerNick", ref _SellerNick, value);
            }
        }
        private string _BuyerNick;
        public string BuyerNick
        {
            get
            {
                return _BuyerNick;
            }
            set
            {
                SetPropertyValue("BuyerNick", ref _BuyerNick, value);
            }
        }
        private string _Title;
        public string Title
        {
            get
            {
                return _Title;
            }
            set
            {
                SetPropertyValue("Title", ref _Title, value);
            }
        }
        private string _Type;
        public string Type
        {
            get
            {
                return _Type;
            }
            set
            {
                SetPropertyValue("Type", ref _Type, value);
            }
        }
        private DateTime _Created;
        public DateTime Created
        {
            get
            {
                return _Created;
            }
            set
            {
                SetPropertyValue("Created", ref _Created, value);
            }
        }
        private string _Iid;
        public string Iid
        {
            get
            {
                return _Iid;
            }
            set
            {
                SetPropertyValue("Iid", ref _Iid, value);
            }
        }
        private string _Price;
        public string Price
        {
            get
            {
                return _Price;
            }
            set
            {
                SetPropertyValue("Price", ref _Price, value);
            }
        }
        private string _PicPath;
        public string PicPath
        {
            get
            {
                return _PicPath;
            }
            set
            {
                SetPropertyValue("PicPath", ref _PicPath, value);
            }
        }
        private long _Num;
        public long Num
        {
            get
            {
                return _Num;
            }
            set
            {
                SetPropertyValue("Num", ref _Num, value);
            }
        }
        private string _Tid;
        public string Tid
        {
            get
            {
                return _Tid;
            }
            set
            {
                SetPropertyValue("Tid", ref _Tid, value);
            }
        }
        private string _AlipayNo;
        public string AlipayNo
        {
            get
            {
                return _AlipayNo;
            }
            set
            {
                SetPropertyValue("AlipayNo", ref _AlipayNo, value);
            }
        }
        private string _Payment;
        public string Payment
        {
            get
            {
                return _Payment;
            }
            set
            {
                SetPropertyValue("Payment", ref _Payment, value);
            }
        }
        private string _DiscountFee;
        public string DiscountFee
        {
            get
            {
                return _DiscountFee;
            }
            set
            {
                SetPropertyValue("DiscountFee", ref _DiscountFee, value);
            }
        }
        private string _SnapshotUrl;
        public string SnapshotUrl
        {
            get
            {
                return _SnapshotUrl;
            }
            set
            {
                SetPropertyValue("SnapshotUrl", ref _SnapshotUrl, value);
            }
        }
        private string _Snapshot;
        public string Snapshot
        {
            get
            {
                return _Snapshot;
            }
            set
            {
                SetPropertyValue("Snapshot", ref _Snapshot, value);
            }
        }
        private bool _SellerRate;
        public bool SellerRate
        {
            get
            {
                return _SellerRate;
            }
            set
            {
                SetPropertyValue("SellerRate", ref _SellerRate, value);
            }
        }
        private bool _BuyerRate;
        public bool BuyerRate
        {
            get
            {
                return _BuyerRate;
            }
            set
            {
                SetPropertyValue("BuyerRate", ref _BuyerRate, value);
            }
        }
        private string _TradeMemo;
        public string TradeMemo
        {
            get
            {
                return _TradeMemo;
            }
            set
            {
                SetPropertyValue("TradeMemo", ref _TradeMemo, value);
            }
        }
        private long _PointFee;
        public long PointFee
        {
            get
            {
                return _PointFee;
            }
            set
            {
                SetPropertyValue("PointFee", ref _PointFee, value);
            }
        }
        private long _RealPointFee;
        public long RealPointFee
        {
            get
            {
                return _RealPointFee;
            }
            set
            {
                SetPropertyValue("RealPointFee", ref _RealPointFee, value);
            }
        }
        private string _TotalFee;
        public string TotalFee
        {
            get
            {
                return _TotalFee;
            }
            set
            {
                SetPropertyValue("TotalFee", ref _TotalFee, value);
            }
        }
        private string _PostFee;
        public string PostFee
        {
            get
            {
                return _PostFee;
            }
            set
            {
                SetPropertyValue("PostFee", ref _PostFee, value);
            }
        }
        private string _BuyerAlipayNo;
        public string BuyerAlipayNo
        {
            get
            {
                return _BuyerAlipayNo;
            }
            set
            {
                SetPropertyValue("BuyerAlipayNo", ref _BuyerAlipayNo, value);
            }
        }
        private string _ReceiverName;
        public string ReceiverName
        {
            get
            {
                return _ReceiverName;
            }
            set
            {
                SetPropertyValue("ReceiverName", ref _ReceiverName, value);
            }
        }
        private string _ReceiverState;
        public string ReceiverState
        {
            get
            {
                return _ReceiverState;
            }
            set
            {
                SetPropertyValue("ReceiverState", ref _ReceiverState, value);
            }
        }
        private string _ReceiverCity;
        public string ReceiverCity
        {
            get
            {
                return _ReceiverCity;
            }
            set
            {
                SetPropertyValue("ReceiverCity", ref _ReceiverCity, value);
            }
        }
        private string _ReceiverDistrict;
        public string ReceiverDistrict
        {
            get
            {
                return _ReceiverDistrict;
            }
            set
            {
                SetPropertyValue("ReceiverDistrict", ref _ReceiverDistrict, value);
            }
        }
        private string _ReceiverAddress;
        public string ReceiverAddress
        {
            get
            {
                return _ReceiverAddress;
            }
            set
            {
                SetPropertyValue("ReceiverAddress", ref _ReceiverAddress, value);
            }
        }
        private string _ReceiverZip;
        public string ReceiverZip
        {
            get
            {
                return _ReceiverZip;
            }
            set
            {
                SetPropertyValue("ReceiverZip", ref _ReceiverZip, value);
            }
        }
        private string _ReceiverMobile;
        public string ReceiverMobile
        {
            get
            {
                return _ReceiverMobile;
            }
            set
            {
                SetPropertyValue("ReceiverMobile", ref _ReceiverMobile, value);
            }
        }
        private string _ReceiverPhone;
        public string ReceiverPhone
        {
            get
            {
                return _ReceiverPhone;
            }
            set
            {
                SetPropertyValue("ReceiverPhone", ref _ReceiverPhone, value);
            }
        }
        private DateTime _ConsignTime;
        public DateTime ConsignTime
        {
            get
            {
                return _ConsignTime;
            }
            set
            {
                SetPropertyValue("ConsignTime", ref _ConsignTime, value);
            }
        }
        private string _BuyerEmail;
        public string BuyerEmail
        {
            get
            {
                return _BuyerEmail;
            }
            set
            {
                SetPropertyValue("BuyerEmail", ref _BuyerEmail, value);
            }
        }
        private string _CommissionFee;
        public string CommissionFee
        {
            get
            {
                return _CommissionFee;
            }
            set
            {
                SetPropertyValue("CommissionFee", ref _CommissionFee, value);
            }
        }
        private string _SellerAlipayNo;
        public string SellerAlipayNo
        {
            get
            {
                return _SellerAlipayNo;
            }
            set
            {
                SetPropertyValue("SellerAlipayNo", ref _SellerAlipayNo, value);
            }
        }
        private string _SellerMobile;
        public string SellerMobile
        {
            get
            {
                return _SellerMobile;
            }
            set
            {
                SetPropertyValue("SellerMobile", ref _SellerMobile, value);
            }
        }
        private string _SellerPhone;
        public string SellerPhone
        {
            get
            {
                return _SellerPhone;
            }
            set
            {
                SetPropertyValue("SellerPhone", ref _SellerPhone, value);
            }
        }
        private string _SellerName;
        public string SellerName
        {
            get
            {
                return _SellerName;
            }
            set
            {
                SetPropertyValue("SellerName", ref _SellerName, value);
            }
        }
        private string _SellerEmail;
        public string SellerEmail
        {
            get
            {
                return _SellerEmail;
            }
            set
            {
                SetPropertyValue("SellerEmail", ref _SellerEmail, value);
            }
        }
        private string _AvailableConfirmFee;
        public string AvailableConfirmFee
        {
            get
            {
                return _AvailableConfirmFee;
            }
            set
            {
                SetPropertyValue("AvailableConfirmFee", ref _AvailableConfirmFee, value);
            }
        }
        private bool _HasPostFee;
        public bool HasPostFee
        {
            get
            {
                return _HasPostFee;
            }
            set
            {
                SetPropertyValue("HasPostFee", ref _HasPostFee, value);
            }
        }
        private string _ReceivedPayment;
        public string ReceivedPayment
        {
            get
            {
                return _ReceivedPayment;
            }
            set
            {
                SetPropertyValue("ReceivedPayment", ref _ReceivedPayment, value);
            }
        }
        private DateTime _TimeoutActionTime;
        public DateTime TimeoutActionTime
        {
            get
            {
                return _TimeoutActionTime;
            }
            set
            {
                SetPropertyValue("TimeoutActionTime", ref _TimeoutActionTime, value);
            }
        }
        private bool _Is3D;
        public bool Is3D
        {
            get
            {
                return _Is3D;
            }
            set
            {
                SetPropertyValue("Is3D", ref _Is3D, value);
            }
        }
        [Association("TradeOrders", typeof(Order)), Aggregated]
        public XPCollection<Order> Orders
        {
            get
            {
                return GetCollection<Order>("Orders");
            }
        }
        private string _NumIid;
        public string NumIid
        {
            get
            {
                return _NumIid;
            }
            set
            {
                SetPropertyValue("NumIid", ref _NumIid, value);
            }
        }
        private string _Promotion;
        public string Promotion
        {
            get
            {
                return _Promotion;
            }
            set
            {
                SetPropertyValue("Promotion", ref _Promotion, value);
            }
        }
        [Association("TradePromotionDetails", typeof(PromotionDetail)), Aggregated]
        public XPCollection<PromotionDetail> PromotionDetails
        {
            get
            {
                return GetCollection<PromotionDetail>("PromotionDetails");
            }
        }
        private string _InvoiceName;
        public string InvoiceName
        {
            get
            {
                return _InvoiceName;
            }
            set
            {
                SetPropertyValue("InvoiceName", ref _InvoiceName, value);
            }
        }
        private string _AlipayUrl;
        public string AlipayUrl
        {
            get
            {
                return _AlipayUrl;
            }
            set
            {
                SetPropertyValue("AlipayUrl", ref _AlipayUrl, value);
            }
        }
        //end
    }
}
